﻿using blackhouse.WebNemo.Business.Groups;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace blackhouse.StareKino.Web {
    public class NemoApartmentPhotoExtension : RecordExtension {

        public NemoApartmentPhotoExtension(GroupRecord record)
            : base(record) { }

        protected override void RecordChanged(GroupRecord record, RecordChangeType type) {
            if (record.IsNull("kategoria_zdjecia")) {
                record.SetRecord("kategoria_zdjecia", 13);
                record.Save(false);
            }
        }

        protected override string GetIdentyficator(GroupRecord record) {
            return "";
        }

        protected override void RecordTranslated(GroupRecord record, GroupColumn column, string prevValue, string value) { }

    }
}